package com.example.qxfw.dysjrh.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @author wzt
 * @date 2025/01/02
 */
@Data
public class GridData {

    //要素(1.降水2.最高气温3.最低气温,4.平均气温5.风速)
    private String type;

    //日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate dateChar;

    //逐小时3或24
    private int byTime;

    //时刻(1.早上8点08 2.晚上8点20)
    private String timeChar;

    //时段(003,006...)
    private String nTimes;
}
